package com.chuangjiangx.member.basic.web.request;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 修改会员手机号码接口参数
 * Created by YangKuo on 2017/9/22.
 */
@Getter
@Setter
public class UpdatePhoneRequest {

    /**
     * 会员id（必传）
     */
    @NotNull(message = "{memberId.null}")
    private Long memberId;

    /**
     * 手机号（必传）
     */
    @Length(min = 11, max = 11, message = "{mobile.size}")
    @NotBlank(message = "{mobile.null}")
    private String mobile;

    /**
     * 验证码（必传）
     */
    @NotBlank(message = "{verifyCode.null}")
    private String verifyCode;

}
